﻿#region Styx Namespaces
using Styx;
using Styx.Common;
using Styx.CommonBot;
using Styx.CommonBot.Routines;
using Styx.TreeSharp;
using Styx.WoWInternals;
using Styx.WoWInternals.DBC;
using Styx.WoWInternals.WoWObjects;
using Styx.MemoryManagement;
#endregion

namespace GiwinMonk
{
    public partial class Monk : CombatRoutine
    {
        public bool CanInterrupt()
        {
            ///<summary>
            /// Spell ID - Spell Name - WoWHead Hyperlink
            ///</summary>
            ///<remarks>
            /// 107079 - "Quaking Palm" - http://www.wowhead.com/spell=107079
            /// 116705 - "Spear Hand Strike" - http://www.wowhead.com/spell=116705
            /// 115078 - "Paralysis" - http://www.wowhead.com/spell=115078
            ///</remarks>

            if ((StyxWoW.Me.CurrentTarget.IsCasting && SpellManager.CanCast(107079)) ||
                ((StyxWoW.Me.CurrentTarget.IsCasting && SpellManager.CanCast(116705)) ||
                ((StyxWoW.Me.CurrentTarget.IsCasting && SpellManager.CanCast(115078)))))
            {
                Logging.Write("Can Interrupt...");
                return true;
            }
            else return false;
        }
    }
}
